We are migrating the bug tracker to github Issues. This is now the preferred way to report NASM bugs.

Self-registration is disabled due to spam issue (mail gorcunov@gmail.com or hpa@zytor.com to create an account)

Bug 3392444 - double times silently uses only the last one's number
Summary: double times silently uses only the last one's number
Status: OPEN
Alias: None
Product: NASM
Classification: Unclassified
Component: Assembler (show other bugs)
Version: 2.13.xx
Hardware: All All
: Medium normal
Assignee: nobody
URL:
Depends on:
Blocks:
 
Reported: 2017-10-18 10:05 PDT by E. C. Masloch
Modified: 2017-10-18 10:05 PDT (History)
3 users (show)

Obtained from: Binary from nasm.us
Generated by: ---
Bug category:
Observed for: ---
Regression: ---
Regression since:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description E. C. Masloch 2017-10-18 10:05:51 PDT
$ nasm -v
NASM version 2.13.02rc2 compiled on Sep 27 2017
$ cat test.asm 
org 0
times 4 times 16 db 0
%assign num $-$$
%warning num bytes used
db 0
$ nasm test.asm -l test.lst
test.asm:4: warning: 16 bytes used [-w+user]
$ cat test.lst
     1                                  org 0
     2 00000000 00<rept>                times 4 times 16 db 0
     3                                  %assign num $-$$
     4                                  %warning num bytes used
     4          ******************       warning: 16 bytes used [-w+user]
     5 00000010 00                      db 0
$ 

Expected: The doubled times should multiply its numbers.